package com.leyou.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@AllArgsConstructor
@Getter
public enum ExceptionEnum {
    PRICE_NOTNULL(400, "价格不能为空！"),
    Category_NOT_FOUND(404, "商品分类没找到！"),
    BRAND_NOT_FOUND(404, "品牌没找到！"),
    SPEC_GROUP_NOT_FOUND(404, "规格参数分组没找到！"),
    BRAND_ADD_FAILED(500, "品牌添加失败！"),
    CATEGORY_ADD_FAILED(500, "分类添加失败！"),
    CATEGORY_UPDATE_FAILED(500, "分类更新失败！"),
    CATEGORY_BRAND_ADD_FAILED(500, "分类品牌中间表添加失败！"),
    ;

    private int code;
    private String msg;
}
